package com.atguigu.gulimall.seckill.service;

import com.atguigu.gulimall.seckill.to.SecKillSkuRedisTo;

import java.util.List;

/**
 * Data time:2022/4/16 20:58
 * StudentID:2019112118
 * Author:hgw
 * Description:
 */
public interface SeckillService {
    void uploadSeckillSkuLatest3Days();

    /**
     * 查询Redis当前参与秒杀的商品信息
     * @return
     */
    List<SecKillSkuRedisTo> getCurrentSeckillSkus();

    /**
     * 获取某个商品的秒杀预告信息
     * @param skuId
     * @return
     */
    SecKillSkuRedisTo getSkuSeckillInfo(Long skuId);

    String kill(String killId, String key, Integer num);
}
